package com.jxau.mall.demo.entity;

import com.jxau.mall.demo.entity.Children;
import com.jxau.mall.demo.entity.Dog;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Map;

/**
 * @BelongsProject: shop
 * @Belongspackage: com.jxau.mall.demo.entity
 * @Author: guojiani
 * @CreateTime: 2025-03-29 20:12
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@ToString
@Component //在容器中实例化一个对象 相当于Person person = new person();
@ConfigurationProperties(prefix = "person") //读取配置文件，prefix 意思是找以person开头的
public class Person {
    private String name; // 姓名
    private Integer age; // 年龄
    private Date birthday; // 生日
    private Boolean registied; // 是否注册
    private Children child; // 儿子
    Map<String, Dog> dogs; // 宠物狗
}
